package com.fc.v2.model.auto;

import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.date.DateUtil;
import java.util.Date;

public class FinishSatgeResult implements Serializable {
    private static final long serialVersionUID = 1L;

	
	@ApiModelProperty(value = "id")
	private String id;
	
	@ApiModelProperty(value = "成果名称")
	private String resName;
	
	@ApiModelProperty(value = "成果形式")
	private String resType;
	
	@ApiModelProperty(value = "作者")
	private String resAuthor;
	
	@ApiModelProperty(value = "出版社")
	private String publishCompany;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@ApiModelProperty(value = "出版时间")
	private Date publishTime;
	
	@ApiModelProperty(value = "项目id")
	private String proId;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@ApiModelProperty(value = "更新时间")
	private Date updateTime;
	
	@JsonProperty("id")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id =  id;
	}
	@JsonProperty("resName")
	public String getResName() {
		return resName;
	}

	public void setResName(String resName) {
		this.resName =  resName;
	}
	@JsonProperty("resType")
	public String getResType() {
		return resType;
	}

	public void setResType(String resType) {
		this.resType =  resType;
	}
	@JsonProperty("resAuthor")
	public String getResAuthor() {
		return resAuthor;
	}

	public void setResAuthor(String resAuthor) {
		this.resAuthor =  resAuthor;
	}
	@JsonProperty("publishCompany")
	public String getPublishCompany() {
		return publishCompany;
	}

	public void setPublishCompany(String publishCompany) {
		this.publishCompany =  publishCompany;
	}
	@JsonProperty("publishTime")
	public Date getPublishTime() {
		return publishTime;
	}

	public void setPublishTime(Date publishTime) {
		this.publishTime =  publishTime;
	}
	@JsonProperty("proId")
	public String getProId() {
		return proId;
	}

	public void setProId(String proId) {
		this.proId =  proId;
	}
	@JsonProperty("updateTime")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime =  updateTime;
	}

																
	public FinishSatgeResult(String id,String resName,String resType,String resAuthor,String publishCompany,Date publishTime,String proId,Date updateTime) {
				
		this.id = id;
				
		this.resName = resName;
				
		this.resType = resType;
				
		this.resAuthor = resAuthor;
				
		this.publishCompany = publishCompany;
				
		this.publishTime = publishTime;
				
		this.proId = proId;
				
		this.updateTime = updateTime;
				
	}

	public FinishSatgeResult() {
	    super();
	}

	public String dateToStringConvert(Date date) {
		if(date!=null) {
			return DateUtil.format(date, "yyyy-MM-dd HH:mm:ss");
		}
		return "";
	}
	

}